﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TVIewTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.Load += Form1_Load;
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            var m = new Model { Value = "" };
            new TView.ViewBind(this, m);
        }

        public class Model
        {
            public virtual string Value { get; set; }
            public virtual void SetValue()
            {
                this.Value = DateTime.Now.Millisecond.ToString();
            }
        }

    }
}
